package com.acme.bankapp.domain.bank;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Bank class contains all clients of bank
 * @author Artem Nikitin
 *
 */
public class Bank {
	private List<Client> clients = new ArrayList<Client>();
	
	public Iterator<Client> clients() {
		return clients.iterator();
	}
	
	public Client getClient(int index) {
		return clients.get(index);
	}
	
	public void addClient(Client client) {
		clients.add(client);
	}
	
	public int getClientCount() {
		return clients.size();
	}
}
